<?php
namespace PsiFramework\Classes\Util\Security\DAO;

import("Classes.DAO.AbstractDAO");
import("Classes.Util.Security.Model.SecurityUserRole");

use \PsiFramework\Classes\DAO\AbstractDAO;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * Classe de DAO pour les droits
 *
 * @package Classes.Util.Security.DAO
 */
class SecurityUserRoleDAO extends AbstractDAO
{
     
    protected static $_singleton = null;

    /**
     * Function to be called instead of the constructor.
     *
     * @return SecurityRightDAO instance
     */
    public static function getInstance($alias)
    {

        if (self::$_singleton==null) {
            self::$_singleton = new SecurityUserRoleDAO($alias);
        }

        return self::$_singleton;
    }
}
